import { dateFormatOptions, dateTypeOptions } from '../options';
import { CreatedOptionsProps } from '@/views/basic/created/interface';

export const datePickerItem: CreatedOptionsProps[] = [
  {
    type: 'select',
    label: '显示类型',
    prop: 'attrs.type',
    hide: false,
    sort: 0,
    children: dateTypeOptions,
    attrs: {
      clearable: true
    }
  },
  {
    type: 'select',
    label: '显示格式',
    prop: 'attrs.format',
    hide: false,
    sort: 0,
    children: dateFormatOptions,
    attrs: {
      clearable: true
    }
  },
  {
    type: 'select',
    label: '值显示格式',
    sort: 0,
    prop: 'attrs.valueFormat',
    hide: false,
    children: dateFormatOptions,
    attrs: {
      clearable: true
    }
  }
];
